package com.tina.mapper;

import com.tina.entity.TiUsers;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author PIGS
 * @since 2020-06-05
 */
@Repository
public interface TiUsersMapper extends BaseMapper<TiUsers> {

    /**
     * 通过用户名查询信息
     * @param userName
     * @return
     */
    public TiUsers queryByName(String userName);

    /**
     * 查询用户信息
     * @param tiUsers
     * @return
     */
    public TiUsers queryUserInfo(@Param("tiUsers")TiUsers tiUsers);
}
